package item

import (
	"time"

	. "gddgame.cc/galaxy/common/dsl/game"
)

const SettingShopItemName = "setting_shop_item"

// factors用来限定购买条件
type SettingShopItem struct {
	Id       int        `json:"id" orm:"auto" sql:"INT"`
	Area     string     `json:"area" sql:"VARCHAR"`
	ItemId   int        `json:"item_id" sql:"INT"`
	Number   int        `json:"number" sql:"INT"`
	BuyPrice int        `json:"buy_price" sql:"INT"`
	Factors  [][]Factor `json:"factors" sql:"JSON"`

	UpdateTime *time.Time `json:"update_time" orm:"updateTime" sql:"DATETIME"`
}
